package drinkreos;

import java.sql.SQLException;

import javax.swing.JFrame;

import drinkreos.model.Database;

public class DrinKreos {
	
	/**
	 * @param args
	 */
	public static void main(String[] args) throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException {
		Database.download();
		
		
		
		JFrame frame = new JFrame("Drink Kreos");
	    
		
		Game game=new Game();
		game.setUp(frame);
		GUI gui=new GUI(frame,game);
		game.setGUI(gui);
		game.start();
		
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	    frame.pack();
	    frame.setVisible(true);
	}

}